import request from '@/utils/request'
// dict-查询详情
export function getDictDetail(pid) {
  return request({
    url: 'dict/lazy?pid=' + pid,
    method: 'get'
  })
}
// dict-列表
export function getDicts() {
  return request({
    url: 'dict/list',
    method: 'get'
  })
}
// dict-增加
export function create(data) {
  return request({
    url: 'dict',
    method: 'post',
    data
  })
}
// dict-删
export function del(ids) {
  return request({
    url: 'dict',
    method: 'delete',
    data: ids
  })
}
// dict-改
export function update(data) {
  return request({
    url: 'dict',
    method: 'put',
    data
  })
}

export default {getDictDetail, create, update, del }
